<template>
	<view class="container">
		<!--轮播图-->
		<swiper class="home-swiper" indicator-dots="true" autoplay="false" interval="8000"
			duration="3000">
			<swiper-item v-for="(item, index) in lunboData" :key="index">
				<view>
					<image :src="item.imgurl" mode="widthFix" />
				</view>
			</swiper-item>
			<!-- 			<block wx:for-items="{{lunboData}}">
				<swiper-item>
					<image src="{{item.imgurl}}" class="slide-image" />
				</swiper-item>
			</block> -->
		</swiper>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				//轮播图配置
				autoplay: false,
				interval: 3000,
				duration: 1200,
				lunboData: [{
						"id": 1,
						"imgurl": "https://www.ainaoxingdong.com/api/an-media/images/an/static/middleScreening/screening/hearth1.png"
					},
					{
						"id": 2,
						"imgurl": "https://www.ainaoxingdong.com/api/an-media/images/an/static/middleScreening/screening/hearth2.png"
					},
					{
						"id": 3,
						"imgurl": "https://www.ainaoxingdong.com/api/an-media/images/an/static/middleScreening/screening/hearth3.png"
					},
					{
						"id": 4,
						"imgurl": "https://www.ainaoxingdong.com/api/an-media/images/an/static/middleScreening/screening/hearth4.png"
					},
					{
						"id": 5,
						"imgurl": "https://www.ainaoxingdong.com/api/an-media/images/an/static/middleScreening/screening/hearth5.png"
					},
					{
						"id": 6,
						"imgurl": "https://www.ainaoxingdong.com/api/an-media/images/an/static/middleScreening/screening/hearth6.png"
					}
				]
			};
		}
	}
</script>

<style lang="scss">
	.container {
		background-color: #f4f7f9;
		padding: 0rpx;
	}

	.home-swiper {
		padding-top: 50rpx;
		padding-left: 40rpx;
		width: 100%;
		height: 1380rpx;
	}

	.slide-image {
		padding-top: 30rpx;
		width: 100%;
		height: 90%;
	}
</style>